/**
 * 分页查询素材请求参数
 */
interface MaterialPageQueryReq {
    pageSize: number;
    pageNum: number;
}

/**
 * 分页查询素材列表响应
 */
interface MaterialImagePageQueryRes {
    code: number;
    message: string;
    data: MaterialImage[];
    total: number;
}

/**
 * 素材
 */
interface MaterialImage {
    id: number;
    userId: number;
    /**
     * 图片地址
     */
    url: string;
    imageName: string;
    /**
     * 图片对象名称，图片可能存储在第三方云服务，需通过该字段访问。
     */
    objectName: string;
    createdAt: Date;
    showButton: boolean;
}

interface DeleteMaterialImageByIdRes {
    code: number;
    message: string;
    data: any;
}

export type {
    MaterialPageQueryReq,
    MaterialImagePageQueryRes,
    MaterialImage,
    DeleteMaterialImageByIdRes,
}
